home *** CD-ROM | disk | FTP | other *** search
Gui4CLI script | 1998-06-24 | 2.3 KB | 137 lines |
- G4C
-
- winbig -1 -1 182 76 "Protect File(s)"
- wintype 11010000
- winout nil:
- varpath "climaster/*/functions.g"
-
- xonload
- guiopen protect.g
-
- xonopen
- update protect.g 1 0
- update protect.g 2 0
- update protect.g 3 0
- update protect.g 4 1
- update protect.g 5 1
- update protect.g 6 1
- update protect.g 7 1
- gosub functions.g getfile
- update protect.g 8 $cm_fname
-
- xonclose
- lvdir none
- guiquit protect.g
-
- box 0 0 0 17 out button
-
- xcheckbox 0 17 26 11 S pro_scr 1 0 off
- gadid 1
- gadtitle above
- xcheckbox 26 17 26 11 P pro_pur 1 0 off
- gadid 2
- gadtitle above
- xcheckbox 52 17 26 11 A pro_arc 1 0 off
- gadid 3
- gadtitle above
- xcheckbox 78 17 26 11 R pro_rea 0 1 off
- gadid 4
- gadtitle above
- xcheckbox 104 17 26 11 W pro_wri 0 1 off
- gadid 5
- gadtitle above
- xcheckbox 130 17 26 11 E pro_exe 0 1 off
- gadid 6
- gadtitle above
- xcheckbox 156 17 26 11 D pro_del 0 1 off
- gadid 7
- gadtitle above
-
- text 0 28 182 12 "" 30 box
- gadid 8
-
- xbutton 0 40 91 12 "All On"
- update protect.g 1 1
- update protect.g 2 1
- update protect.g 3 1
- update protect.g 4 1
- update protect.g 5 1
- update protect.g 6 1
- update protect.g 7 1
-
- xbutton 0 52 91 12 "All Off"
- update protect.g 1 0
- update protect.g 2 0
- update protect.g 3 0
- update protect.g 4 0
- update protect.g 5 0
- update protect.g 6 0
- update protect.g 7 0
-
- xbutton 0 64 91 12 "Toggle"
- if $pro_scr = 1
- update protect.g 1 0
- else
- update protect.g 1 1
- endif
- if $pro_pur = 1
- update protect.g 2 0
- else
- update protect.g 2 1
- endif
- if $pro_arc = 1
- update protect.g 3 0
- else
- update protect.g 3 1
- endif
- if $pro_rea = 1
- update protect.g 4 1
- else
- update protect.g 4 0
- endif
- if $pro_wri = 1
- update protect.g 5 1
- else
- update protect.g 5 0
- endif
- if $pro_exe = 1
- update protect.g 6 1
- else
- update protect.g 6 0
- endif
- if $pro_del = 1
- update protect.g 7 1
- else
- update protect.g 7 0
- endif
-
- xbutton 91 40 91 12 "Current"
- gosub protect.g buildbits
- action protect $cm_select $pro_code
- lvmulti off
- lvmulti next
- if $cm_select = ""
- guiclose protect.g
- endif
- gosub functions.g getfile
- update protect.g 8 $cm_fname
-
- xbutton 91 52 91 12 "All Files"
- gosub protect.g buildbits
- update protect.g 8 ""
- lvaction protect $pro_code
- guiclose protect.g
-
- xbutton 91 64 91 12 Cancel
- guiclose protect.g
-
- xroutine buildbits
- pro_code = $pro_del
- appvar pro_code $pro_exe
- appvar pro_code $pro_wri
- appvar pro_code $pro_rea
- appvar pro_code $pro_arc
- appvar pro_code $pro_pur
- appvar pro_code $pro_scr
- return
-